<?php /* Smarty version 2.6.18, created on 2016-12-12 22:54:57
         compiled from personnel/personnel.three.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">
                <div class="box-header with-border">
                    <a href="index.php?a=personnel.list&appoint_type=1&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
" class="btn btn-default">部门任命列表</a>
                    
                    <a href="index.php?a=personnel.list&appoint_type=3&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
" class="btn btn-primary">级长任命列表</a>
                    <a href="index.php?a=personnel.list&appoint_type=4&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
" class="btn btn-default">班主任任命列表</a>			
					<a href="index.php?a=personnel.list&appoint_type=2&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
" class="btn btn-default">教研组任命列表</a>
					<a href="index.php?a=personnel.list&appoint_type=5&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
" class="btn btn-default">备课组任命列表</a>
					<a href="index.php?a=personnel.list&appoint_type=6&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
" class="btn btn-default">学科组任命列表</a>
                    <a href="index.php?a=personnel.out&appoint_type=3&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
" target="_blank" class="btn btn-warning btn-sm" style="float:right; color:#fff; margin-left:10px;">导 出</a>
					<a href="index.php?a=personnel.add&appoint_type=<?php echo $this->_tpl_vars['appoint_type']; ?>
&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
" class="btn btn-primary btn-sm" style="float:right; color:#fff;">新 增</a>
                </div>
                <div class="box-body">
				    <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   年级：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							  <select class="form-control" name="grade_id" id="grade_id">
                                <option value=""> 全部</option>
								<?php $_from = $this->_tpl_vars['grade_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                <option value="<?php echo $this->_tpl_vars['value']['grade_id']; ?>
"<?php if ($this->_tpl_vars['value']['grade_id'] == $this->_tpl_vars['grade_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</option>
                                <?php endforeach; endif; unset($_from); ?>
                              </select> 
						  </div> 
				    </div>
					<div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
							   职务：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							  <select class="form-control" name="position_type">
							    <option value="">全部</option>
                                <option value="1"<?php if ($this->_tpl_vars['position_type'] == 1): ?>selected<?php endif; ?>>级长</option>
								<option value="2"<?php if ($this->_tpl_vars['position_type'] == 2): ?>selected<?php endif; ?>>副级长</option> 
                               </select>
						  </div> 
				    </div>
					<div class="col-md-3 col-xs-12 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; ">
							   人员：
						  </label>
						  <div class="input-group col-md-8 col-xs-12" style="float:left;">
							   <input type="text" class="form-control" name="staff_name">
						  </div>						  
				    </div>
					<div class="col-md-1 col-xs-12">
					   <input type="hidden" name="a" value="personnel.list">
					   <input type="hidden" name="appoint_staff" value="<?php echo $this->_tpl_vars['appoint_staff']; ?>
">
					   <input type="hidden" name="appoint_type" value="<?php echo $this->_tpl_vars['appoint_type']; ?>
">
					   <button type="submit" class="btn btn-warning">查 询</button>
					</div>
					<div style="clear:both; height:4px;"></div>
                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr style="background-color:#a273ff;">
                                        <td>年级</td>
                                        <td>职务</td>
										<td>姓名</td>
                                        <td width="150">操作</td>
                                    </tr>	
                                </thead>

                                <tbody>
								<?php $_from = $this->_tpl_vars['appoint_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
                                        <td><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</td>
										<td><?php echo $this->_tpl_vars['value']['position_type']; ?>
</td>
										<td><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</td>
                                        <td>
                                        	 <a href="index.php?a=personnel.update&appoint_id=<?php echo $this->_tpl_vars['value']['appoint_id']; ?>
&appoint_type=<?php echo $this->_tpl_vars['appoint_type']; ?>
&appoint_staff=<?php echo $this->_tpl_vars['appoint_staff']; ?>
" class="btn btn-warning btn-sm" title="修改" > <i class="fa fa-edit (alias)"></i></a>
											  <a href="index.php?a=personnel.del&appoint_id=<?php echo $this->_tpl_vars['value']['appoint_id']; ?>
&appoint_type=<?php echo $this->_tpl_vars['appoint_type']; ?>
" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认删除信息?')==false)return false;"> <i class="fa fa-trash"></i></a>
                                        </td>
                                    </tr>	
                                <?php endforeach; endif; unset($_from); ?>    
                            </tbody>
                        </table>
				   </div><!--box-body -->
				   <div class="box-footer">
				   <?php echo $this->_tpl_vars['page']; ?>

				   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
